<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="lib/axios.min.js"></script>
<script>
    axios.defaults.baseURL='http://localhost:3000/'
    axios.defaults.headers['mytoken']='hello'
    axios.get('axios-json')
    .then(function (ret) {
        console.log(ret)
        console.log(ret.data)
        console.log(ret.data.uname)
    })
</script>
</body>
</html>